package binary;

public class HexDemo {
    public static void main(String[] args) {
        int l = 0b100_0111_1011_1001_1000_1010;
        int y = 0x47b98a;

        System.out.println(l);
        System.out.println(y);

        System.out.println(Integer.toBinaryString(l));
        System.out.println(Integer.toBinaryString(y));

        System.out.println(Integer.toHexString(l));
        System.out.println(Integer.toHexString(y));
    }
}
